import request from '@/utils/request'

// 查询采购单详情列表
export function listPurchasedetails(query) {
  return request({
    url: '/system/purchasedetails/list',
    method: 'get',
    params: query
  })
}

// 查询采购单详情详细
export function getPurchasedetails(purchaseDetailsID) {
  return request({
    url: '/system/purchasedetails/' + purchaseDetailsID,
    method: 'get'
  })
}

// 新增采购单详情
export function addPurchasedetails(data) {
  return request({
    url: '/system/purchasedetails',
    method: 'post',
    data: data
  })
}

// 修改采购单详情
export function updatePurchasedetails(data) {
  return request({
    url: '/system/purchasedetails',
    method: 'put',
    data: data
  })
}

// 删除采购单详情
export function delPurchasedetails(purchaseDetailsID) {
  return request({
    url: '/system/purchasedetails/' + purchaseDetailsID,
    method: 'delete'
  })
}
